<template>
    <div class="body" id="wekupButton">
    <div class="header"></div>
    <!-- 优惠卷 -->
    <div class="csdn">
      <ul>
        <li @click="receive(134)">
          <div class="link"></div>
        </li>
        <li @click="receive(135)">
          <div class="link"></div>
        </li>
      </ul>
      <div class="text">（仅本页面活动商品不含爆款）</div>
    </div>
    <!-- title -->
    <img
      src="../../assets/img/thing/title1.png"
      class="images"
      alt=""
    >
    <!-- g购物卡 -->
    <div class="six">
      <ul>
        <li @click="nav({goods_id:7704})">
          <div class="btn">立即购买</div>
        </li>
        <li @click="nav({goods_id:7708})">
          <div class="btn">立即购买</div>
        </li>
        <li @click="nav({goods_id:7711})">
          <div class="btn">立即购买</div>
        </li>
        <li @click="nav({goods_id:7714})">
          <div class="btn">立即购买</div>
        </li>
      </ul>
    </div>
    <!-- title -->
    <img
      src="../../assets/img/thing/title2.png"
      class="images"
      alt=""
    >
    <!-- 必买 -->
    <div class="much">
      <div class="item">
        <ul>
          <li
            v-for="item in list"
            :key="item.goods_id"
            @click="nav(item)"
          >
            <img
              class="one-hit"
              :src="item.goods_img"
              alt=""
            >
            <div class="text-one"> {{item.goods_name}}</div>
            <div class="money-Hot">¥ {{item.active_price}}</div>
            <div class="Hote">立即抢购</div>
          </li>
        </ul>
      </div>
      <!-- 轮播two -->
      <!-- :autoplay="2000" -->
      <van-swipe
        :duration="700"
        :autoplay="5000"
        style="height:4.926667rem;"
        :show-indicators=false
      >
        <van-swipe-item
          v-for="item in lister"
          :key="item.goods_id"
        >
          <ul>
            <li
              v-for="itemr in item"
              :key="itemr.goods_id"
              @click="nav(itemr)"
            >
              <div class="back">
                <img
                  class="one-hit"
                  :src="itemr.goods_img"
                  alt=""
                >
              </div>

              <div class="text-one"> {{itemr.goods_name}}</div>
              <div class="money-Hot">¥
                <span>{{itemr.active_price}}</span>
              </div>
            </li>
          </ul>
        </van-swipe-item>
      </van-swipe>
    </div>
    <!-- title2 -->
    <img
      src="../../assets/img/thing/title3.png"
      class="images"
      alt=""
    >
    <div class="muche">
      <div class="item">
        <ul>
          <li
            v-for="item in atr"
            :key="item.goods_id"
            @click="nav(item)"
          >
            <div class="back">
              <img
                class="one-hit"
                :src="item.goods_img"
                alt=""
              >
            </div>

            <div class="text-one"> {{item.goods_name}}</div>
            <div class="money-Hot">¥ {{item.active_price}}</div>
            <div class="Go-hot">立即抢购</div>
          </li>
        </ul>
      </div>
      <!-- 轮播two -->
      <!-- :autoplay="2000" -->
      <div class="Hot">
        <ul>
          <li
            v-for="item in atrdev"
            :key="item.goods_id"
            @click="nav(item)"
          >
            <div class="back">
              <img
                class="one-hit"
                :src="item.goods_img"
                alt=""
              >
            </div>

            <div class="text-one"> {{item.goods_name}}</div>
            <div class="money-Hot">¥
              <span>{{item.active_price}}</span>
            </div>
          </li>
        </ul>
      </div>
    </div>
    <img
      src="../../assets/img/thing/title4.png"
      class="images"
      alt=""
    >
    <!-- 热销 -->
    <div class="Hot">
      <ul>
        <li
          v-for="item in listdev"
          :key="item.goods_id"
          @click="nav(item)"
        >
          <div class="back">
            <img
              class="one-hit"
              :src="item.goods_img"
              alt=""
            >
          </div>

          <div class="text-one"> {{item.goods_name}}</div>
          <div class="money-Hot">¥
            <span>{{item.active_price}}</span>
          </div>
        </li>
      </ul>
    </div>
    <img
      @click="ping"
      src="../../assets/img/thing/title5.png"
      class="images"
      alt=""
    >
    <!-- 置顶 -->
    <div
      class="totop"
      id="totop"
      @click="backTop"
      v-show="btnFlag"
    >
      <!-- <i class="iconfont icon-zhiding"></i> -->
    </div>
  </div>
</template>

<script>
import bridge from '../../js/js1'
import { index, Coupondev } from '@/api/index'
import { share } from '../../js/public'
import { getSystem, openApp, getUrlQuery, parseKeyValue } from '../../js/js'
export default {
  // 组件名称
  name: '',
  // 局部注册的组件
  components: {},
  // 组件参数 接收来自父组件的数据
  props: {},
  // 组件状态值
  data () {
    return {
      list: [],
      lister: [],
      listdev: [],
      show: false,
      system: getSystem(),
      atr: [],
      atrdev: [],
      listerdev: [],
      share: true,
      scrollTop: 0,
      btnFlag: false,
      showTips: false
    }
  },
  destroyed () {
    window.removeEventListener('scroll', this.scrollToTop);
  },
  // 计算属性
  computed: {},
  // 侦听器
  watch: {},
  // 生命周期钩子   注：没用到的钩子请自行删除
  /**
  * 组件实例创建完成，属性已绑定，但DOM还未生成，$ el属性还不存在
  */
  created () {
    this.create()
    this.Token()
  },
  /**
  * el 被新创建的 vm.el 替换，并挂载到实例上去之后调用该钩子。
  * 如果 root 实例挂载了一个文档内元素，当 mounted 被调用时 vm.el 也在文档内。
  */
  mounted () {
    window.addEventListener('scroll', this.scrollToTop)
    share({
      title: '818宠粉节!',
      desc: '宠爱自己，爱上换新,更有20元优惠券，速速来抢。',
      imgUrl: 'https://download.yuanfuda933.com/h5/images/moone.png',
      shareUrl: 'https://download.yuanfuda933.com/h5/other2.html#/moon',
      share: this.share,
    })
  },
  // 组件方法
  methods: {
    receive (id) {
      const tokened = this.$store.state.user.token
      console.log(tokened);
      const system = getSystem()
      if (system.yfd) {
        if (tokened) {
          Coupondev({
            id: id
          }).then(res => {
            // console.log(res.data.data.err_code);
            console.log(res.data.err_code);
            if (res.data.err_code != 0) {
              return this.$toast(res.data.msg);
            }
            this.$toast('领取成功！');
          }).catch(res => {
            console.log(res);
            console.log('领取失败');
          })
        } else {
          this.$toast("领取失败，请先登录！");
          if (system.android) {
            console.log('and 登录')
            bridge.dsCall('h5Login', '', e => {
              callback(e)
            })
          }
          if (system.iOS) {
            console.log('ios 登录')
            bridge.iosCall('h5Login', '', e => {
              callback(e)
            })
          }
        }
      } else {
        this.$toast("请先登录APP！");
      }
    },
    Token () {
      this.getToken(token => {
        this.$store.commit('setUser', token)
      })
    },
    getToken (callback) {
      // console.log(callback);
      const system = getSystem()
      if (system.android) {
        bridge.dsCall('getToken', '', res => {
          if (typeof res === 'string') res = JSON.parse(res)
          callback(res)
        })
        return
      }
      if (system.iOS) {
        bridge.iosReg('myTokenmethd', res => {
          const token = parseKeyValue(res)
          // const token = qs.parse(res)
          callback(token)
        })
        bridge.iosCall('getToken', '', res => { })
      }
    },
    ping () {
      window.location.href = 'yfd://yfdmall:8080/homePage?categoryId=360'
    },
    // 点击图片回到顶部方法，加计时器是为了过渡顺滑
    backTop () {
      const that = this
      let timer = setInterval(() => {
        let ispeed = Math.floor(-that.scrollTop / 5)
        document.documentElement.scrollTop = document.body.scrollTop = that.scrollTop + ispeed
        if (that.scrollTop === 0) {
          clearInterval(timer)
        }
      }, 16)
    },
    // 为了计算距离顶部的高度，当高度大于60显示回顶部图标，小于60则隐藏
    scrollToTop () {
      const that = this
      let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
      that.scrollTop = scrollTop
      // console.log(that.scrollTop);
      if (that.scrollTop > 800) {
        that.btnFlag = true
      } else {
        that.btnFlag = false
      }
    },
    async create () {
      try {
        const res = await index({
          id: 89
        })
        console.log(res.data.data.types);
        this.list = res.data.data.types[0].goods.slice(0, 2)
        var atrdev = res.data.data.types[0].goods.slice(2, 8)

        var resultdev = []
        for (var i = 0; i < atrdev.length; i += 3) {
          resultdev.push(atrdev.slice(i, i + 3));
        }
        this.lister = resultdev

        this.atr = res.data.data.types[1].goods.slice(0, 2)
        this.atrdev = res.data.data.types[1].goods.slice(2, 30)

        // var result = []
        // for (var i = 0; i < atr.length; i += 3) {
        //   result.push(atr.slice(i, i + 3));
        // }
        // this.atrdev = result
        this.listdev = res.data.data.types[2].goods
      } catch (err) {
        console.log('错误');
      }
    },
    // 跳转下载
    nav (item) {
      console.log(item.goods_id);
      // window.locaition.href = 'http://yuanfuda933.oss-cn-zhangjiakou.aliyuncs.com/yfdMall_1_v1.0.1.apk?squId=' + 'item.goods._id'
      window.location.href = 'yfd://yfdmall:8080/goodsDetail?spuId=' + item.goods_id
    },
    href (uri, blank = true) {
      const a = document.createElement('a')
      a.style.display = 'none'
      a.href = uri
      if (blank) a.setAttribute('target', '_blank')
      document.body.appendChild(a)
      a.click()
      setTimeout(t => {
        document.body.removeChild(a)
      }, 0)
    },
  }
}
</script>

<style scoped lang="less">
.body {
  overflow: hidden;
  min-width: 320px;
  max-width: 750px;
  width: 10rem;
  // height: 160.066667rem;
  background: #56a0e0;
  // background: url("../../assets/img/thing/back.png") no-repeat;
  // background-size: contain;
  margin: 0 auto;
  line-height: 1.5;
  font-family: Arial, Helvetica;
  .moy {
    width: 2.746667rem;
    height: 0.613333rem;
    margin: 0.266667rem auto;
    border-radius: 0.4rem;
    font-size: 0.373333rem;
    color: #ff0000;
    text-align: center;
    line-height: 0.61rem;
    border: 0.026667rem solid#FFFFFF;
    background: -webkit-linear-gradient(top, #fcd073, #f6dba4);
  }
  .totop {
    position: fixed;
    width: 1.2rem; /* 40/16 */
    height: 1.2rem;
    border-radius: 1.25rem /* 20/16 */;
    opacity: 0.8;
    background: url("../../assets/ding.png") no-repeat;
    background-size: contain;
    box-shadow: 0 1px 5px 0 #e0e0e0;
    right: 0.125rem; /* 18/16 */
    bottom: 3rem; /* 64/16 */
    z-index: 1100;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
  }
  .header {
    background: url("../../assets/img/thing/header.png") no-repeat;
    background-size: contain;
    width: 10rem;
    height: 14.72rem;
    // margin-bottom: 0.266667rem;
  }
  // 优惠卷
  .csdn {
    width: 9.626667rem;
    border-radius: 0.266667rem;
    margin: 0 auto;
    height: 3.906667rem;
    background: -webkit-linear-gradient(top, #fdfdeb, #ffdc96);
    ul {
      li {
        width: 3.92rem;
        height: 2.986667rem;
        float: left;
        margin-top: 0.366667rem;
        margin-left: 0.65rem;
        position: relative;
        .link {
          position: absolute;
          top: 31%;
          left: 55%;
          width: 1.093333rem;
          height: 1.066667rem;
          background: url("../../assets/img/thing/ling.png") no-repeat;
          background-size: contain;
          animation: mymove 2s infinite;
          -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
          animation-direction: alternate; /*轮流反向播放动画。*/
          animation-timing-function: ease-in-out; /*动画的速度曲线*/
          /* Safari 和 Chrome */
          -webkit-animation: mymove 2s infinite;
          -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
        }
      }
      li:nth-child(1) {
        background: url("../../assets/img/thing/10.png") no-repeat;
        background-size: contain;
      }
      li:nth-child(2) {
        background: url("../../assets/img/thing/20.png") no-repeat;
        background-size: contain;
      }
    }
    .text {
      font-size: 0.32rem;
      color: #ee5e01;
      text-align: center;
    }
  }
  // g购物卡
  .six {
    width: 10rem;
    // height: 3.866667rem;
    margin: 0 auto 0.266667rem;
    display: flex;
    overflow-y: hidden;
    overflow-x: scroll;
    ul {
      display: flex;
      li {
        margin-left: 0.03rem;
        width: 2.853333rem;
        height: 3.306667rem;
        float: left;
        .btn {
          width: 1.946667rem;
          height: 0.603333rem;
          border-radius: 0.3rem;
          margin: 2.28rem 0.8rem 0 0.45rem;
          font-weight: 600;
          font-size: 0.373333rem;
          background: #fa2900;
          color: #ffffff;
          text-align: center;
          line-height: 0.603333rem;
          animation: mymove 2s infinite;
          -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
          animation-direction: alternate; /*轮流反向播放动画。*/
          animation-timing-function: ease-in-out; /*动画的速度曲线*/
          /* Safari 和 Chrome */
          -webkit-animation: mymove 2s infinite;
          -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
        }
      }
      li:nth-child(1) {
        background: url("../../assets/img/stars/110@2x.png") no-repeat;
        background-size: contain;
      }
      li:nth-child(2) {
        background: url("../../assets/img/stars/230@2x.png") no-repeat;
        background-size: contain;
      }
      li:nth-child(3) {
        background: url("../../assets/img/stars/590@2x.png") no-repeat;
        background-size: contain;
      }
      li:nth-child(4) {
        background: url("../../assets/img/stars/1000@2x.png") no-repeat;
        background-size: contain;
      }
    }
  }
  .images {
    width: 10rem;
    height: 1.786667rem;
    margin: 0.2rem auto;
  }
  .Title {
    width: 10rem;
    height: 1.706667rem;
    margin-bottom: -0.296667rem;
  }
  .much {
    width: 9.8rem;
    // background: #ffeff0;
    margin: 0 auto 0.266667rem;
    border-radius: 0.266667rem;
    padding-top: 0.266667rem;
    box-sizing: border-box;
    .item {
      overflow: hidden;
      ul li {
        box-shadow: 0 0.02rem 0.0016667rem 0.0016667rem #e7e7e7;
        float: left;
        position: relative;
        width: 9.333333rem;
        margin-left: 0.2333rem;
        margin-bottom: 0.16rem;
        height: 4.213333rem;
        border-radius: 0.266667rem;
        background-color: #ffffff;
        .one-hit {
          width: 3.653333rem;
          height: 3.493333rem;
          margin-top: 0.36rem;
          margin-left: 0.413333rem;
          border-radius: 0.266667rem;
        }
        .text-one {
          float: right;
          font-weight: 600;
          width: 4.053333rem;
          height: 1.273333rem;
          font-size: 0.426667rem;
          border-bottom: 0.026667rem solid #9e9e9e;
          color: #1957a8;
          margin-top: 0.693333rem;
          margin-right: 0.4rem;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
        }
        .money-Hot {
          box-sizing: border-box;
          position: absolute;
          top: 54%;
          right: 4%;
          width: 4.08rem;
          height: 0.96rem;
          font-size: 0.466667rem;
          padding-top: 0.166667rem;
          padding-left: 0.173333rem;
          font-weight: 600;
          color: #1957a8;
        }
        .Hote {
          position: absolute;
          right: 19%;
          top: 79%;
          width: 2.693333rem;
          height: 0.693333rem;
          background: -webkit-linear-gradient(left, #62b9f6, #24589e);
          border-radius: 0.4rem;
          font-size: 0.48rem;
          font-weight: 600;
          color: #ffffff;
          text-align: center;
          line-height: 0.693333rem;
        }
      }
      li:nth-child(2) .one-hit {
        float: right;
        width: 3.653333rem;
        height: 3.493333rem;
        margin-top: 0.36rem;
        margin-right: 0.413333rem;
        border-radius: 0.266667rem;
      }
      li:nth-child(2) .text-one {
        position: absolute;
        top: 0%;
        left: 4%;
        font-weight: 600;
        width: 4.053333rem;
        height: 1.273333rem;
        font-size: 0.426667rem;
        border-bottom: 0.026667rem solid #9e9e9e;
        color: #1957a8;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }
      li:nth-child(2) .money-Hot {
        box-sizing: border-box;
        position: absolute;
        top: 54%;
        right: 53%;
        width: 4.08rem;
        height: 0.96rem;
        font-size: 0.466667rem;
        padding-top: 0.166667rem;
        padding-left: 0.173333rem;
        font-weight: 600;
        color: #1957a8;
      }
      li:nth-child(2) .Hote {
        position: absolute;
        left: 5%;
        top: 79%;
        width: 2.693333rem;
        height: 0.693333rem;
        background: -webkit-linear-gradient(left, #62b9f6, #24589e);
        border-radius: 0.4rem;
        font-size: 0.48rem;
        font-weight: 600;
        color: #ffffff;
        text-align: center;
        line-height: 0.693333rem;
      }
    }
    .van-swipe {
      width: 9.6rem;
      margin-left: 0.14rem;
      overflow: hidden;
    }
    /deep/ .van-swipe-item {
      li:nth-child(2) {
        // margin: 0 0.36rem;
      }
      ul li {
        box-shadow: 0 0.02rem 0.0016667rem 0.0016667rem #e7e7e7;
        float: left;
        width: 2.933333rem;
        height: 4.826667rem;
        overflow: hidden;
        background: #ffffff;
        margin-left: 0.169333rem;
        margin-bottom: 0.266667rem;
        border-radius: 0.266667rem;
        .back {
          overflow: hidden;
          width: 100%;
          height: 3.093333rem;
          background-color: #f8f8f7;
          border-radius: 0.266667rem;
          .one-hit {
            display: block;
            margin: 0.296667rem auto;
            width: 2.3rem;
            height: 2.3rem;
          }
        }
        .text-one {
          font-size: 0.32rem;
          color: #1957a8;
          width: 2.733333rem;
          margin: 0 auto;
          height: 0.906667rem;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
        }
        .money-Hot {
          font-weight: 600;
          margin-top: 0.206667rem;
          margin-left: 0.136667rem;
          font-size: 0.266667rem;
          color: #1957a8;
          span {
            font-size: 0.373333rem;
          }
        }
      }
    }
  }
  .muche {
    width: 9.8rem;
    // background: #ffeff0;
    margin: 0 auto 0.266667rem;
    border-radius: 0.266667rem;
    padding-top: 0.266667rem;
    box-sizing: border-box;
    .item {
      margin-left: 0.133333rem;
      overflow: hidden;
      width: 10rem;
      ul li {
        box-shadow: 0 0.02rem 0.0016667rem 0.0016667rem #e7e7e7;
        float: left;
        position: relative;
        width: 4.613333rem;
        margin-left: 0.093333rem;
        margin-bottom: 0.16rem;
        height: 7.226667rem;
        border-radius: 0.266667rem;
        background-color: #ffffff;
        .back {
          width: 100%;
          height: 4.56rem;
          background-color: #f8f8f7;
          border-radius: 0.266667rem;
          .one-hit {
            width: 4.053333rem;
            height: 3.693333rem;
            margin-top: 0.266667rem;
            margin-left: 0.32rem;
          }
        }
        .text-one {
          width: 4.04rem;
          height: 1.093333rem;
          font-size: 0.373333rem;
          color: #1957a8;
          margin: 0 auto;
          // font-weight: 600;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
        }
        .money-Hot {
          // width: 1.733333rem;
          height: 0.533333rem;
          font-size: 0.426667rem;
          margin-left: 0.32rem;
          margin-top: 0.08rem;
          font-weight: 600;
          color: red;
        }
        .Go-hot {
          // position: absolute;
          // right: 10%;
          // bottom: 3%;
          width: 4.106667rem;
          height: 0.72rem;
          margin: 0 auto;
          font-size: 0.426667rem;
          text-align: center;
          line-height: 0.72rem;
          color: #ffffff;
          border-radius: 0.1rem;
          // border: 0.013333rem solid #6d240b;
          background: -webkit-linear-gradient(left, #62b9f6, #24589e);
        }
      }
    }
    .van-swipe {
      width: 9.6rem;
      margin-left: 0.103333rem;
    }
    /deep/ .van-swipe-item {
      li:nth-child(2) {
        margin: 0 0.26rem;
      }
      li:nth-child(1) {
        margin-left: 0.1rem;
      }
      ul li {
        box-shadow: 0 0.02rem 0.0016667rem 0.0016667rem #e7e7e7;
        overflow: hidden;
        float: left;
        position: relative;
        width: 2.953333rem;
        height: 4.293333rem;
        background-color: #ffffff;
        border-radius: 0.266667rem;
        // margin-left: 0.19667rem;
        .imge {
          width: 2.16rem;
          height: 2.16rem;
          margin-left: 0.453333rem;
          margin-top: 0.213333rem;
          border-radius: 0.266667rem;
        }
        .text-Dev {
          margin: 0.16rem auto 0;
          width: 2.893333rem;
          height: 0.533333rem;
          font-size: 0.36rem;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          color: #6a22bd;
        }
        .money-Dev {
          // width: 0.933333rem;
          height: 0.4rem;
          font-size: 0.32rem;
          color: red;
          // font-weight: 600;
          margin-left: 0.12rem;
          margin-top: 0.166667rem;
        }
        .Go-hot {
          position: absolute;
          right: 9%;
          bottom: 6%;
          width: 0.973333rem;
          height: 0.426667rem;
          font-size: 0.32rem;
          text-align: center;
          line-height: 0.48rem;
          color: #ffffff;
          border-radius: 0.4rem;
          background: #62b9f6;
        }
      }
    }
  }
  .Hot {
    width: 9.8rem;
    // background: #ffeff0;
    margin: 0 auto 0.266667rem;
    border-radius: 0.266667rem;
    padding-top: 0.266667rem;
    box-sizing: border-box;
    overflow: hidden;
    padding-left: 0.133333rem;
    ul li {
      box-shadow: 0 0.02rem 0.0016667rem 0.0016667rem #e7e7e7;
      float: left;
      width: 2.933333rem;
      height: 4.826667rem;
      overflow: hidden;
      background: #ffffff;
      margin-left: 0.163333rem;
      margin-bottom: 0.266667rem;
      border-radius: 0.266667rem;
      .back {
        overflow: hidden;
        width: 100%;
        height: 3.093333rem;
        background-color: #f8f8f7;
        border-radius: 0.266667rem;
        .one-hit {
          display: block;
          margin: 0.296667rem auto;
          width: 2.3rem;
          height: 2.3rem;
        }
      }
      .text-one {
        font-size: 0.32rem;
        color: #1957a8;
        width: 2.733333rem;
        margin: 0 auto;
        height: 0.906667rem;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }
      .money-Hot {
        font-weight: 600;
        margin-top: 0.206667rem;
        margin-left: 0.136667rem;
        font-size: 0.266667rem;
        color: #f83514;
        span {
          font-size: 0.373333rem;
        }
      }
    }
  }
  @keyframes mymove {
    0% {
      transform: scale(1); /*开始为原始大小*/
    }
    25% {
      transform: scale(1.1); /*放大1.1倍*/
    }
    50% {
      transform: scale(1);
    }
    75% {
      transform: scale(1.1);
    }
  }
  @-webkit-keyframes mymove /*Safari and Chrome*/ {
    0% {
      transform: scale(1); /*开始为原始大小*/
    }
    25% {
      transform: scale(1.1); /*放大1.1倍*/
    }
    50% {
      transform: scale(1);
    }
    75% {
      transform: scale(1.1);
    }
  }
}
</style>
